package com.lanou.utp.mapper;

import com.lanou.utp.entity.Teacher;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TeacherMapper {
    List<Teacher> selectTeacherByPage(@Param("page") Integer size);

    int addTeacher(Teacher teacher);

    int delTeacher(Integer id);

    int delTeachers(@Param("ids") List<Integer> id);

    Integer selectTotal();

    int updateTeacher(Teacher teacher);

    List<Teacher> selectAllTeachers();
}
